package keter.dao.base;

import java.util.List;


public abstract interface KeterDao<Entity> {

	public abstract void save(Entity entity);
	
	public abstract void saveList(Iterable<Entity> entity);

 	public abstract Entity saveEntity(Entity entity);

	public abstract void delete(Entity entity);

	public abstract void delete(Long id);
	
	public abstract void executeUpdate(String sqlQuery, String[] names, Object[] parameters);

	public abstract Entity findOne(Long id);
	
	public abstract List<Entity> findAll();	
	
	public abstract List<Entity> findAll(PageRequest pageable);	
	
	public void flush();

}